﻿<UserControl 
    x:Class="McKearney.TfsSolutionInfo.MyControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:vsfx="clr-namespace:Microsoft.VisualStudio.Shell;assembly=Microsoft.VisualStudio.Shell.10.0"
    mc:Ignorable="d" 
    d:DesignWidth="300"
    d:DesignHeight="100"
    Name="TFSProjectInfoWindow" 
    VerticalContentAlignment="Top" 
    HorizontalContentAlignment="Stretch" 
    VerticalAlignment="Top" 
    HorizontalAlignment="Stretch" 
    VisualTextRenderingMode="ClearType" 
    VisualTextHintingMode="Fixed" ClipToBounds="True">
    <UserControl.Resources>
    </UserControl.Resources>
    <StackPanel x:Name="LayoutRoot">
        <StackPanel.Resources>
            <LinearGradientBrush x:Key="HeaderBgBrush">
                <GradientStop 
                            Offset="0.1"
                            Color="{DynamicResource {x:Static vsfx:VsColors.CommandBarGradientBeginKey}}"
                            />
                <GradientStop 
                            Color="{DynamicResource {x:Static vsfx:VsColors.CommandBarGradientEndKey}}"  
                            Offset="0.9"  
                            />
            </LinearGradientBrush>
            <Style TargetType="Expander">
                <Setter Property="Background" Value="{StaticResource HeaderBgBrush}" />
                <Setter Property="Foreground" Value="{DynamicResource {x:Static vsfx:VsBrushes.CommandBarTextSelectedKey}}"/>
            </Style>
            <Style TargetType="Label">
                <Setter Property="Foreground" Value="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowTextKey}}"/>
            </Style>

            <Style TargetType="Grid">
                <Setter Property="Background" Value="{DynamicResource {x:Static vsfx:VsBrushes.ToolWindowBackgroundKey}}"/>
                <Setter Property="HorizontalAlignment" Value="Stretch" />
            </Style>
        </StackPanel.Resources>
        <Expander 
            Visibility="{Binding Visibility}"
            IsExpanded="{Binding ShowProperties, Mode=OneWay}"
            Header="{Binding Header}"
            HorizontalAlignment="Stretch" 
            VerticalAlignment="Top" 
            d:IsHidden="True">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="1*" />
                    <ColumnDefinition Width="2*" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*" />
                    <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <Label Grid.Row="0" Content="Branch" />
                <Label Grid.Row="0" Grid.Column="1" Content="{Binding BranchLocation}"/>
                <Label Grid.Row="1" Content="Workspace" />
                <Label Grid.Row="1" Grid.Column="1" Content="{Binding Workspace}" />
            </Grid>
        </Expander>
    </StackPanel>
</UserControl>
